package io.github.biezhi.java8.lambda.lesson1;

import java.util.function.Function;

public class TestFunction {



    public static void main(String[] str) {
        Function<Integer,Integer> incl = x -> x + 1;
        Function<Integer,Integer> multiply = x -> x + 1;
        int x = 2;

        System.out.println("f(x) = x + 1="+x+", f(x)="+incl.apply(x));



    }
}
